import Vue from 'vue'
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
import ElementUI from 'element-ui'
import '@/theme/index.css'
// import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // lang i18n
import '@/styles/index.scss' // global css
import App from './App'
import router from './router'
import store from './store'
import request from '@/utils/request'
import dayjs from 'dayjs'
import * as echarts from 'echarts'; // https://echarts.apache.org/examples/zh/index.html
import '@/icons' // icon
import '@/permission' // permission control
//生成单号
import moment from '@/utils/moment'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
Vue.prototype.$http = axios


// if (process.env.NODE_ENV === 'production') {
//   const { mockXHR } = require('../mock')
//   mockXHR()
// }

Vue.use(ElementUI)
Vue.prototype.$echarts = echarts
Vue.prototype.$http = request
Vue.prototype.$dayjs = dayjs

Vue.prototype.$moment = moment // 获取时间方法
Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
